package org.lalib.controller.form;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.faces.bean.SessionScoped;

import org.lalib.acquire.IControllerForm;
import org.lalib.entity.object.ETable;
import org.springframework.stereotype.Controller;

@SessionScoped
@Controller("cTableForm")
public class CTableForm implements IControllerForm {

	private static final long serialVersionUID = 1L;

	private Date since;
	private Date till;
	private String name = "";
	
	private List<ETable> tables = new ArrayList<>();

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getSince() {
		return since;
	}

	public void setSince(Date since) {
		this.since = since;
	}

	public Date getTill() {
		return till;
	}

	public void setTill(Date till) {
		this.till = till;
	}

	public void clear() {
		setName("");
		setSince(null);
		setTill(null);
	}

	public List<ETable> getTables() {
		return tables;
	}

	public void setTables(List<ETable> tables) {
		this.tables = tables;
	}
}
